package ai.people.netmon.telegram.service.impl;

import ai.people.netmon.framework.domain.telegram.entity.BusinessType;
import ai.people.netmon.framework.domain.telegram.entity.CountryConfig;
import ai.people.netmon.framework.domain.telegram.entity.LanguageConfig;
import ai.people.netmon.framework.domain.telegram.entity.SysCountryRegion;
import ai.people.netmon.telegram.mapper.ConfigInfoMapper;
import ai.people.netmon.telegram.service.ConfigInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 配置信息服务impl
 *
 * @author yuanqinglong
 * @date 2022/1/13 16:50
 */
@Service
public class ConfigInfoServiceImpl implements ConfigInfoService {


    @Autowired
    private ConfigInfoMapper configInfoMapper;


    /**
     * 国家列表
     *
     * @return {@link List}<{@link CountryConfig}>
     */
    @Override
    public List<CountryConfig> countryList() {
        return configInfoMapper.countryList();
    }

    /**
     * 语言列表
     *
     * @return {@link List}<{@link LanguageConfig}>
     */

    @Override
    public List<LanguageConfig> languageList() {
        return configInfoMapper.languageList();
    }

    /**
     * 业务类型列表
     *
     * @return {@link List}<{@link BusinessType}>
     */
    @Override
    public List<BusinessType> businessTypeList() {
        return configInfoMapper.businessTypeList();
    }


    /**
     * 国家地区列表
     *
     * @return {@link List}<{@link SysCountryRegion}>
     */
    @Override
    public List<SysCountryRegion> countryRegionList() {
        return configInfoMapper.countryRegionList();
    }


}
